package com.study.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.study.system.common.annotation.DataPermission;
import com.study.system.model.bo.UserBO;
import com.study.system.model.entity.SysUser;
import com.study.system.model.dto.UserAuthInfo;
import com.study.system.model.bo.UserFormBO;
import com.study.system.model.query.UserPageQuery;
import com.study.system.model.vo.UserExportVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {


    @DataPermission(deptAlias = "u")
    Page<UserBO> getUserPage(Page<UserBO> page, UserPageQuery queryParams);


    UserFormBO getUserDetail(Long userId);


    UserAuthInfo getUserAuthInfo(String username);


    @DataPermission(deptAlias = "u")
    List<UserExportVO> listExportUsers(UserPageQuery queryParams);
}
